import random
str1 = ""
for i in range(12):
    str1 += str(random.randint(0, 1))
print(f"亮灯情况{str1}")
num = random.randint(1, 12)
print(f"你打到了第{num}个灯")
if str1[num-1] == "1":
    print("恭喜你打中了")
else:
    print("没有打中")